package com.lx.javasunmmrize.tcp;

/**
 * @Description TODO
 * @Author lx
 * @Date 2021/3/8 9:57
 **/
public class ByteTest {
    public static void main(String[] args) {

        String s = "11111111jjjsqwwwwwwwwwwwwwjjh0xxxxxg0000000";
            byte[] bs = s.getBytes();
        System.out.println(bs.length);
        byte[] target = new byte[bs.length-8];
            System.arraycopy(bs, 0, target, 0, bs.length-8);
        String s1 = new String(target);
        System.out.println(s1);

    }
}
